<template>
  <view class="information">
    <view class="title">
      门诊检查
    </view>
    <view class="main">
      
      <view class="top noborder">
        <view class="item">
          <view class="value">尿液分析（UEC）</view>
          <view class="pay_status">
            未支付
          </view>
        </view>
        <view class="item">
          <view class="label">预约时间：</view>
          <view class="value">
            2024-09-12 11:00:11
          </view>
        </view>
        <view class="item">
          <view class="label">科室：</view>
          <view class="value">
            内科
          </view>
        </view>
        <view class="item">
          <view class="label">位置：</view>
          <view class="value">
            门诊2楼B区
            <view class="pst flexC" @click="$router.push('/pages/navInHsp/navInHsp')">
              <img :src="`${$store.state.baseApi}/icon/way.png`" alt="">
              路线
            </view>
          </view>
        </view>
      </view>
      
      <view class="line"></view>
      
      <view class="btn-box">
        <view class="left btn">
          检查预约
        </view>
        <view class="right btn">
          查看报告
        </view>
      </view>
    </view>
  </view>
  
</template>

<script>
import { mapGetters } from 'vuex';
export default {
  computed:{
  	...mapGetters(['userInfo']),
  }
}
</script>

<style lang="scss" scoped>
.information {
  width: 100%;
  border: 1px solid $theme-color;
  border-radius: 8upx;
  .title {
    line-height: 80upx;
    background-color: $theme-color;
    color: #FFF;
    text-align: center;
  }
}
.main {
  padding: 24upx;
  border-radius: 8upx;
}
.item {
  display: flex;
  margin-bottom: 24upx;
  .label {
    flex-shrink: 0;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 28upx;
    color: rgba(0,0,0,0.5);
    line-height: 44upx;
  }
  .value {
    flex: 1;
    font-family: PingFang SC, PingFang SC;
    font-weight: 400;
    font-size: 28upx;
    color: rgba(0,0,0,0.7);
    line-height: 44upx;
    position: relative;
    .pst {
      align-items: center;
      float: right;
      font-family: PingFang SC, PingFang SC;
      font-weight: 400;
      font-size: 24upx;
      color: #3E81F7;
      line-height: 44upx;
      // transform: translateX(8upx);
      margin-left: -8upx;
      margin-right: -8upx;
      >img {
        width: 32upx;
        height: 32upx;
      }
    }
  }
}
.line {
  margin-bottom: 24upx;
}
.numtitle {
  width: 200upx;
  height: 66upx;
  background: #E2EDFF;
  border-radius: 50upx;
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 28upx;
  color: rgba(0,0,0,0.7);
  line-height: 66upx;
  margin: 8upx auto 24upx;
  text-align: center;
}
.num {
  font-family: PingFang SC, PingFang SC;
  font-weight: 500;
  font-size: 48upx;
  color: #3E81F7;
  line-height: 44upx;
  text-align: center;
  margin-bottom: 60upx;
}
.queueDetail {
  justify-content: space-around;
  view {
    text-align: center;
    margin-bottom: 14upx;
  }
}
.top {
  border-bottom: 1px solid rgba(0,0,0,0.12);
  margin-bottom: 24upx;
}
.noborder {
  border: none;
}
.pay_status {
  float: right;
  width: 120upx;
  height: 36upx;
  line-height: 36upx;
  text-align: center;
  background: #E2E2E2;
  border-radius: 4upx;
  color: rgba(0,0,0,0.36);
}
.btn-box {
  display: flex;
  justify-content: space-around;
  margin: 64upx 0 22upx;
  .btn {
    width: 200upx;
    height: 54upx;
    line-height: 54upx;
    text-align: center;
    border-radius: 54upx;
    &.left {
      border: 1px solid $theme-color;
      color: $theme-color;
    }
    &.right {
      background-color: $theme-color;
      color: #FFF;
    }
  }
}
</style>